<?php

class UserController extends Controller
{
    public function index(){
//        global $smarty;
        $model = new Model('test');
        $data = $model->select();

        // 分配变量
        $this->assign('title','这个是index主页');
        $this->assign('list',$data);
        $this->display('User/index.html');
    }
}